home *** CD-ROM | disk | FTP | other *** search
/ Computer Arts: Pro Software Skills - Photoshop / Computer Arts Pro Software Skills Photoshop.iso / pc / main.swf / scripts / frame_6 / DoAction.as
Encoding:
Text File  |  2011-06-06  |  1022 b   |  37 lines

  1. function loadIntro()
  2. {
  3.    trace("loadIntro()");
  4.    intro_text_lv.load(mdm.Application.path + "discContents" + _global.delim + "Intro" + _global.delim + "intro.txt");
  5. }
  6. var intro_image = Array(mdm.Application.path + "discContents" + delim + "Intro" + delim + "shot.jpg");
  7. imgLoader.setImageList(intro_image);
  8. var intro_text_lv = new LoadVars();
  9. artsLogo.loadMovie(mdm.Application.path + "discContents/Intro/CALogo.jpg");
  10. intro_text_lv.onLoad = function(suc)
  11. {
  12.    if(suc)
  13.    {
  14.       trace(intro_text_lv.info);
  15.       mainTextBox.htmlText = intro_text_lv.info;
  16.    }
  17.    else
  18.    {
  19.       mainTextBox.htmlText = "Load Failed";
  20.    }
  21. };
  22. intro_text_lv.load(mdm.Application.path + "discContents" + _global.delim + "Intro" + _global.delim + "intro.txt");
  23. var styles = new TextField.StyleSheet();
  24. styles.onLoad = function(success)
  25. {
  26.    if(success)
  27.    {
  28.       trace(this.getStyleNames());
  29.       loadIntro();
  30.    }
  31.    else
  32.    {
  33.       trace("Error loading CSS file.");
  34.    }
  35. };
  36. styles.load("styles.css");
  37.